package com.lin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
/*产品物料组成明细*/
public class DModuleDetails {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private Integer parentId;

    private Integer detailsNumber;

    private String productId;

    private String productName;

    private String type;

    private String productDescribe;

    private String amountUnit;

    private Integer amount;

    private Integer residualAmount;

    private Double costPrice;

    private Double subtotal;

    @TableField(exist = false)
    private List<DModule> dModules;

    //零时的商品名字
    @TableField(exist = false)
    private String productNameDmodule;
}